package com.openspring.platform.model;

import com.openspring.framework.annotation.persistence.Column;
import com.openspring.framework.annotation.persistence.GeneratedValue;
import com.openspring.framework.annotation.persistence.Id;
import com.openspring.framework.annotation.persistence.Table;
import org.codehaus.jackson.annotate.JsonIgnore;

@Table(name="t_platform_user", schema="emp")
public class User {

	private Long id;
	private Long deptId;
	private String userName;
	private String loginName;
	private String password;
	private String status;
	private long sort;
	
	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="deptId")
	public Long getDeptId() {
		return deptId;
	}
	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}
	@Column(name="userName")
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Column(name="loginName")
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	@Column(name="password", updatable=false)
	@JsonIgnore
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name="status")
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="sort")
	public long getSort() {
		return sort;
	}
	public void setSort(long sort) {
		this.sort = sort;
	}	
}
